import React, { useContext } from 'react'
import style from './style.module.less'
import { messageCenterContext } from '../../context'

export default () => {
  const { platformInstructionsData } = useContext(messageCenterContext)
  // 判空
  const content = platformInstructionsData.length > 0 ? platformInstructionsData[0].content : ''
  return (
    <div className={style.modalBox}>
      <div dangerouslySetInnerHTML={{ __html: content }} />
    </div>
  )
}
